<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>FTPClient (Commons Net 3.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="FTPClient (Commons Net 3.3 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/FTPClient.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTPClient.html" target="_top">Frames</a></li>
<li><a href="FTPClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.net.ftp</div>
<h2 title="Class FTPClient" class="title">Class FTPClient</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">org.apache.commons.net.SocketClient</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">org.apache.commons.net.ftp.FTP</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.net.ftp.FTPClient</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/commons/net/ftp/FTPHTTPClient.html" title="class in org.apache.commons.net.ftp">FTPHTTPClient</a>, <a href="../../../../../org/apache/commons/net/ftp/FTPSClient.html" title="class in org.apache.commons.net.ftp">FTPSClient</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.276">FTPClient</a>
extends <a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a>
implements <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></pre>
<div class="block">FTPClient encapsulates all the functionality necessary to store and
 retrieve files from an FTP server.  This class takes care of all
 low level details of interacting with an FTP server and provides
 a convenient higher level interface.  As with all classes derived
 from <a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net"><code>SocketClient</code></a>,
 you must first connect to the server with
 <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int)"><code>connect </code></a>
 before doing anything, and finally
 <a href="../../../../../org/apache/commons/net/SocketClient.html#disconnect()"><code>disconnect </code></a>
 after you're completely finished interacting with the server.
 Then you need to check the FTP reply code to see if the connection
 was successful.  For example:
 <pre>
    FTPClient ftp = new FTPClient();
    FTPClientConfig config = new FTPClientConfig();
    config.setXXX(YYY); // change required options
    ftp.configure(config );
    boolean error = false;
    try {
      int reply;
      ftp.connect("ftp.foobar.com");
      System.out.println("Connected to " + server + ".");
      System.out.print(ftp.getReplyString());

      // After connection attempt, you should check the reply code to verify
      // success.
      reply = ftp.getReplyCode();

      if(!FTPReply.isPositiveCompletion(reply)) {
        ftp.disconnect();
        System.err.println("FTP server refused connection.");
        System.exit(1);
      }
      ... // transfer files
      ftp.logout();
    } catch(IOException e) {
      error = true;
      e.printStackTrace();
    } finally {
      if(ftp.isConnected()) {
        try {
          ftp.disconnect();
        } catch(IOException ioe) {
          // do nothing
        }
      }
      System.exit(error ? 1 : 0);
    }
 </pre>
 <p>
 Immediately after connecting is the only real time you need to check the
 reply code (because connect is of type void).  The convention for all the
 FTP command methods in FTPClient is such that they either return a
 boolean value or some other value.
 The boolean methods return true on a successful completion reply from
 the FTP server and false on a reply resulting in an error condition or
 failure.  The methods returning a value other than boolean return a value
 containing the higher level data produced by the FTP command, or null if a
 reply resulted in an error condition or failure.  If you want to access
 the exact FTP reply code causing a success or failure, you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>getReplyCode </code></a> after
 a success or failure.
 <p>
 The default settings for FTPClient are for it to use
 <code> FTP.ASCII_FILE_TYPE </code>,
 <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 <code> FTP.STREAM_TRANSFER_MODE </code>, and
 <code> FTP.FILE_STRUCTURE </code>.  The only file types directly supported
 are <code> FTP.ASCII_FILE_TYPE </code> and
 <code> FTP.BINARY_FILE_TYPE </code>.  Because there are at least 4
 different EBCDIC encodings, we have opted not to provide direct support
 for EBCDIC.  To transfer EBCDIC and other unsupported file types you
 must create your own filter InputStreams and OutputStreams and wrap
 them around the streams returned or required by the FTPClient methods.
 FTPClient uses the <a href="../../../../../org/apache/commons/net/io/ToNetASCIIOutputStream.html" title="class in org.apache.commons.net.io"><code>NetASCII</code></a>
 filter streams to provide transparent handling of ASCII files.  We will
 consider incorporating EBCDIC support if there is enough demand.
 <p>
 <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 <code> FTP.STREAM_TRANSFER_MODE </code>, and
 <code> FTP.FILE_STRUCTURE </code> are the only supported formats,
 transfer modes, and file structures.
 <p>
 Because the handling of sockets on different platforms can differ
 significantly, the FTPClient automatically issues a new PORT (or EPRT) command
 prior to every transfer requiring that the server connect to the client's
 data port.  This ensures identical problem-free behavior on Windows, Unix,
 and Macintosh platforms.  Additionally, it relieves programmers from
 having to issue the PORT (or EPRT) command themselves and dealing with platform
 dependent issues.
 <p>
 Additionally, for security purposes, all data connections to the
 client are verified to ensure that they originated from the intended
 party (host and port).  If a data connection is initiated by an unexpected
 party, the command will close the socket and throw an IOException.  You
 may disable this behavior with
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRemoteVerificationEnabled(boolean)"><code>setRemoteVerificationEnabled()</code></a>.
 <p>
 You should keep in mind that the FTP server may choose to prematurely
 close a connection if the client has been idle for longer than a
 given time period (usually 900 seconds).  The FTPClient class will detect a
 premature FTP server connection closing when it receives a
 <a href="../../../../../org/apache/commons/net/ftp/FTPReply.html#SERVICE_NOT_AVAILABLE"><code>FTPReply.SERVICE_NOT_AVAILABLE </code></a>
  response to a command.
 When that occurs, the FTP class method encountering that reply will throw
 an <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 .
 <code>FTPConnectionClosedException</code>
 is a subclass of <code> IOException </code> and therefore need not be
 caught separately, but if you are going to catch it separately, its
 catch block must appear before the more general <code> IOException </code>
 catch block.  When you encounter an
 <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 , you must disconnect the connection with
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#disconnect()"><code>disconnect() </code></a> to properly clean up the
 system resources used by FTPClient.  Before disconnecting, you may check the
 last reply code and text with
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>getReplyCode </code></a>,
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a>,
 and
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings</code></a>.
 You may avoid server disconnections while the client is idle by
 periodically sending NOOP commands to the server.
 <p>
 Rather than list it separately for each method, we mention here that
 every method communicating with the server and throwing an IOException
 can also throw a
 <a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a>
 , which is a subclass
 of IOException.  A MalformedServerReplyException will be thrown when
 the reply received from the server deviates enough from the protocol
 specification that it cannot be interpreted in a useful manner despite
 attempts to be as lenient as possible.
 <p>
 Listing API Examples
 Both paged and unpaged examples of directory listings are available,
 as follows:
 <p>
 Unpaged (whole list) access, using a parser accessible by auto-detect:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPFile[] files = f.listFiles(directory);
 </pre>
 <p>
 Paged access, using a parser not accessible by auto-detect.  The class
 defined in the first parameter of initateListParsing should be derived
 from org.apache.commons.net.FTPFileEntryParser:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine =
       f.initiateListParsing("com.whatever.YourOwnParser", directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre>
 <p>
 Paged access, using a parser accessible by auto-detect:
 <pre>
    FTPClient f = new FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine = f.initiateListParsing(directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre>
 <p>
 For examples of using FTPClient on servers whose directory listings
 <ul>
 <li>use languages other than English</li>
 <li>use date formats other than the American English "standard" <code>MM d yyyy</code></li>
 <li>are in different timezones and you need accurate timestamps for dependency checking
     as in Ant</li>
 </ul>see <a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a>.
 <p>
 <b>Control channel keep-alive feature</b>:<br/>
 During file transfers, the data connection is busy, but the control connection is idle.
 FTP servers know that the control connection is in use, so won't close it through lack of activity,
 but it's a lot harder for network routers to know that the control and data connections are associated
 with each other.
 Some routers may treat the control connection as idle, and disconnect it if the transfer over the data
 connection takes longer than the allowable idle time for the router.
 <br/>
 One solution to this is to send a safe command (i.e. NOOP) over the control connection to reset the router's
 idle timer. This is enabled as follows:
 <pre>
     ftpClient.setControlKeepAliveTimeout(300); // set timeout to 5 minutes
 </pre>
 This will cause the file upload/download methods to send a NOOP approximately every 5 minutes.
 <p>
 The implementation currently uses a <a href="../../../../../org/apache/commons/net/io/CopyStreamListener.html" title="interface in org.apache.commons.net.io"><code>CopyStreamListener</code></a> which is passed to the
 <a href="../../../../../org/apache/commons/net/io/Util.html#copyStream(java.io.InputStream, java.io.OutputStream, int, long, org.apache.commons.net.io.CopyStreamListener, boolean)"><code>Util.copyStream(InputStream, OutputStream, int, long, CopyStreamListener, boolean)</code></a>
 method, so the timing is partially dependent on how long each block transfer takes.
 <p>
 <b>Note:</b> this does not apply to the methods where the user is responsible for writing or reading
 the data stream, i.e. <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#retrieveFileStream(java.lang.String)"><code>retrieveFileStream(String)</code></a> , <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeFileStream(java.lang.String)"><code>storeFileStream(String)</code></a>
 and the other xxxFileStream methods
 <p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTP_SYSTEM_TYPE"><code>FTP_SYSTEM_TYPE</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#SYSTEM_TYPE_PROPERTIES"><code>SYSTEM_TYPE_PROPERTIES</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><code>FTP</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a>, 
<a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#ACTIVE_LOCAL_DATA_CONNECTION_MODE">ACTIVE_LOCAL_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 should connect to the client's data port to initiate a data transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#ACTIVE_REMOTE_DATA_CONNECTION_MODE">ACTIVE_REMOTE_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to should connect to the other server's
 data port to initiate a data transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTP_SYSTEM_TYPE">FTP_SYSTEM_TYPE</a></strong></code>
<div class="block">The system property ("org.apache.commons.net.ftp.systemType") which can be used to override the system type.<br/>
 If defined, the value will be used to create any automatically created parsers.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTP_SYSTEM_TYPE_DEFAULT">FTP_SYSTEM_TYPE_DEFAULT</a></strong></code>
<div class="block">The system property ("org.apache.commons.net.ftp.systemType.default") which can be used as the default system type.<br/>
 If defined, the value will be used if the SYST command fails.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#PASSIVE_LOCAL_DATA_CONNECTION_MODE">PASSIVE_LOCAL_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 is in passive mode, requiring the client to connect to the
 server's data port to initiate a transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#PASSIVE_REMOTE_DATA_CONNECTION_MODE">PASSIVE_REMOTE_DATA_CONNECTION_MODE</a></strong></code>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to is in passive mode, requiring the other
 server to connect to the first server's data port to initiate a data
 transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#SYSTEM_TYPE_PROPERTIES">SYSTEM_TYPE_PROPERTIES</a></strong></code>
<div class="block">The name of an optional systemType properties file ("/systemType.properties"), which is loaded
 using <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true#getResourceAsStream(java.lang.String)" title="class or interface in java.lang"><code>Class.getResourceAsStream(String)</code></a>.<br/>
 The entries are the systemType (as determined by <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a>)
 and the values are the replacement type or parserClass, which is passed to
 <a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html#createFileEntryParser(java.lang.String)"><code>FTPFileEntryParserFactory.createFileEntryParser(String)</code></a>.<br/>
 For example:</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.net.ftp.FTP">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.commons.net.ftp.<a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></h3>
<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_commandSupport_">_commandSupport_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlEncoding">_controlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_">_controlInput_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_">_controlOutput_</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_newReplyString">_newReplyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyCode">_replyCode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyLines">_replyLines</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyString">_replyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#ASCII_FILE_TYPE">ASCII_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#BINARY_FILE_TYPE">BINARY_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#BLOCK_TRANSFER_MODE">BLOCK_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#CARRIAGE_CONTROL_TEXT_FORMAT">CARRIAGE_CONTROL_TEXT_FORMAT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#COMPRESSED_TRANSFER_MODE">COMPRESSED_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_CONTROL_ENCODING">DEFAULT_CONTROL_ENCODING</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_DATA_PORT">DEFAULT_DATA_PORT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_PORT">DEFAULT_PORT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#EBCDIC_FILE_TYPE">EBCDIC_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#FILE_STRUCTURE">FILE_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#LOCAL_FILE_TYPE">LOCAL_FILE_TYPE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#NON_PRINT_TEXT_FORMAT">NON_PRINT_TEXT_FORMAT</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#PAGE_STRUCTURE">PAGE_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#RECORD_STRUCTURE">RECORD_STRUCTURE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#REPLY_CODE_LEN">REPLY_CODE_LEN</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#STREAM_TRANSFER_MODE">STREAM_TRANSFER_MODE</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#strictMultilineParsing">strictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#TELNET_TEXT_FORMAT">TELNET_TEXT_FORMAT</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#_defaultPort_">_defaultPort_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_input_">_input_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_output_">_output_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_serverSocketFactory_">_serverSocketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socket_">_socket_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socketFactory_">_socketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_timeout_">_timeout_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connectTimeout">connectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#NETASCII_EOL">NETASCII_EOL</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTPClient()">FTPClient</a></strong>()</code>
<div class="block">Default FTPClient constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_connectAction_()">_connectAction_</a></strong>()</code>
<div class="block">Initiates control connections and gets initial reply.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(org.apache.commons.net.ftp.FTPCmd, java.lang.String)">_openDataConnection_</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command,
                                        <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</code>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(int, java.lang.String)">_openDataConnection_</a></strong>(int&nbsp;command,
                                        <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>(3.3) Use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(org.apache.commons.net.ftp.FTPCmd, java.lang.String)"><code>_openDataConnection_(FTPCmd, String)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(java.lang.String, java.lang.String)">_openDataConnection_</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                                        <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)</code>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_parseExtendedPassiveModeReply(java.lang.String)">_parseExtendedPassiveModeReply</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;reply)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_parsePassiveModeReply(java.lang.String)">_parsePassiveModeReply</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;reply)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_retrieveFile(java.lang.String, java.lang.String, java.io.OutputStream)">_retrieveFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_retrieveFileStream(java.lang.String, java.lang.String)">_retrieveFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_storeFile(java.lang.String, java.lang.String, java.io.InputStream)">_storeFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_storeFileStream(java.lang.String, java.lang.String)">_storeFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                                <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#abort()">abort</a></strong>()</code>
<div class="block">Abort a transfer in progress.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#allocate(int)">allocate</a></strong>(int&nbsp;bytes)</code>
<div class="block">Reserve a number of bytes on the server for the next file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#allocate(int, int)">allocate</a></strong>(int&nbsp;bytes,
                int&nbsp;recordSize)</code>
<div class="block">Reserve space on the server for the next file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#appendFile(java.lang.String, java.io.InputStream)">appendFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Appends to a file on the server with the given name, taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#appendFileStream(java.lang.String)">appendFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to append
 to a file on the server with the given name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#changeToParentDirectory()">changeToParentDirectory</a></strong>()</code>
<div class="block">Change to the parent directory of the current working directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#changeWorkingDirectory(java.lang.String)">changeWorkingDirectory</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Change the current working directory of the FTP session.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()">completePendingCommand</a></strong>()</code>
<div class="block">There are a few FTPClient methods that do not complete the
 entire sequence of FTP commands to complete a transaction.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#configure(org.apache.commons.net.ftp.FTPClientConfig)">configure</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp">FTPClientConfig</a>&nbsp;config)</code>
<div class="block">Implementation of the <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><code>Configurable</code></a> interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#deleteFile(java.lang.String)">deleteFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Deletes a file on the FTP server.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#disconnect()">disconnect</a></strong>()</code>
<div class="block">Closes the connection to the FTP server and restores
 connection parameters to the default values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#doCommand(java.lang.String, java.lang.String)">doCommand</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                  <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;params)</code>
<div class="block">Issue a command and wait for the reply.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#doCommandAsStrings(java.lang.String, java.lang.String)">doCommandAsStrings</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;params)</code>
<div class="block">Issue a command and wait for the reply, returning it as an array of strings.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()">enterLocalActiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code>ACTIVE_LOCAL_DATA_CONNECTION_MODE</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()">enterLocalPassiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterRemoteActiveMode(java.net.InetAddress, int)">enterRemoteActiveMode</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
                                          int&nbsp;port)</code>
<div class="block">Set the current data connection mode to
 <code> ACTIVE_REMOTE_DATA_CONNECTION </code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterRemotePassiveMode()">enterRemotePassiveMode</a></strong>()</code>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_REMOTE_DATA_CONNECTION_MODE </code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#features()">features</a></strong>()</code>
<div class="block">Query the server for supported features.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#featureValue(java.lang.String)">featureValue</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)</code>
<div class="block">Query the server for a supported feature, and returns the its value (if any).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#featureValues(java.lang.String)">featureValues</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)</code>
<div class="block">Query the server for a supported feature, and returns its values (if any).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getAutodetectUTF8()">getAutodetectUTF8</a></strong>()</code>
<div class="block">Tells if automatic server encoding detection is enabled or disabled.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getBufferSize()">getBufferSize</a></strong>()</code>
<div class="block">Retrieve the current internal buffer size for buffered data streams.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getControlKeepAliveReplyTimeout()">getControlKeepAliveReplyTimeout</a></strong>()</code>
<div class="block">Get how long to wait for control keep-alive message replies.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getControlKeepAliveTimeout()">getControlKeepAliveTimeout</a></strong>()</code>
<div class="block">Get the time to wait between sending control connection keepalive messages.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/io/CopyStreamListener.html" title="interface in org.apache.commons.net.io">CopyStreamListener</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getCopyStreamListener()">getCopyStreamListener</a></strong>()</code>
<div class="block">Obtain the currently active listener.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getDataConnectionMode()">getDataConnectionMode</a></strong>()</code>
<div class="block">Returns the current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getListArguments(java.lang.String)">getListArguments</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getListHiddenFiles()">getListHiddenFiles</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getModificationTime(java.lang.String)">getModificationTime</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP MDTM command (not supported by all servers to retrieve the last
 modification time of a file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getPassiveHost()">getPassiveHost</a></strong>()</code>
<div class="block">Returns the hostname or IP address (in the form of a string) returned
 by the server when entering passive mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getPassiveLocalIPAddress()">getPassiveLocalIPAddress</a></strong>()</code>
<div class="block">Set the local IP address in passive mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getPassivePort()">getPassivePort</a></strong>()</code>
<div class="block">If in passive mode, returns the data port of the passive host.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getReceiveDataSocketBufferSize()">getReceiveDataSocketBufferSize</a></strong>()</code>
<div class="block">Retrieve the value to be used for the data socket SO_RCVBUF option.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getRestartOffset()">getRestartOffset</a></strong>()</code>
<div class="block">Fetches the restart offset.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSendDataSocketBufferSize()">getSendDataSocketBufferSize</a></strong>()</code>
<div class="block">Retrieve the value to be used for the data socket SO_SNDBUF option.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getStatus()">getStatus</a></strong>()</code>
<div class="block">Issue the FTP STAT command to the server.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getStatus(java.lang.String)">getStatus</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP STAT command to the server for a given pathname.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemName()">getSystemName</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()">getSystemType</a></strong>()</code>
<div class="block">Fetches the system type from the server and returns the string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#hasFeature(java.lang.String)">hasFeature</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)</code>
<div class="block">Query the server for a supported feature.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#hasFeature(java.lang.String, java.lang.String)">hasFeature</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Query the server for a supported feature with particular value,
 for example "AUTH SSL" or "AUTH TLS".</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing()">initiateListParsing</a></strong>()</code>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the current working
 directory on the server
 This information is obtained through the LIST command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing(java.lang.String)">initiateListParsing</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#initiateListParsing(java.lang.String, java.lang.String)">initiateListParsing</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parserKey,
                                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the supplied parser key, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#isRemoteVerificationEnabled()">isRemoteVerificationEnabled</a></strong>()</code>
<div class="block">Return whether or not verification of the remote host participating
 in data connections is enabled.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#isUseEPSVwithIPv4()">isUseEPSVwithIPv4</a></strong>()</code>
<div class="block">Whether should attempt to use EPSV with IPv4.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listDirectories()">listDirectories</a></strong>()</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of directories contained in the current working directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listDirectories(java.lang.String)">listDirectories</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parent)</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of directories contained in the specified directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles()">listFiles</a></strong>()</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)">listFiles</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory
 or for just a single file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">listFiles</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                  <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)</code>
<div class="block">Version of <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(String)</code></a> which allows a filter to be provided.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listHelp()">listHelp</a></strong>()</code>
<div class="block">Fetches the system help information from the server and returns the
 full string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listHelp(java.lang.String)">listHelp</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)</code>
<div class="block">Fetches the help information for a given command from the server and
 returns the full string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listNames()">listNames</a></strong>()</code>
<div class="block">Obtain a list of filenames in the current working directory
 This information is obtained through the NLST command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listNames(java.lang.String)">listNames</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Obtain a list of filenames in a directory (or just the name of a given
 file, which is not particularly useful).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#login(java.lang.String, java.lang.String)">login</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</code>
<div class="block">Login to the FTP server using the provided username and password.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#login(java.lang.String, java.lang.String, java.lang.String)">login</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)</code>
<div class="block">Login to the FTP server using the provided username, password,
 and account.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#logout()">logout</a></strong>()</code>
<div class="block">Logout of the FTP server by sending the QUIT command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#makeDirectory(java.lang.String)">makeDirectory</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Creates a new subdirectory on the FTP server in the current directory
 (if a relative pathname is given) or where specified (if an absolute
 pathname is given).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#mlistDir()">mlistDir</a></strong>()</code>
<div class="block">Generate a directory listing for the current directory using the MLSD command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#mlistDir(java.lang.String)">mlistDir</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Generate a directory listing using the MLSD command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#mlistDir(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">mlistDir</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)</code>
<div class="block">Generate a directory listing using the MLSD command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#mlistFile(java.lang.String)">mlistFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Get file details using the MLST command</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#printWorkingDirectory()">printWorkingDirectory</a></strong>()</code>
<div class="block">Returns the pathname of the current working directory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteAppend(java.lang.String)">remoteAppend</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteRetrieve(java.lang.String)">remoteRetrieve</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStore(java.lang.String)">remoteStore</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStoreUnique()">remoteStoreUnique</a></strong>()</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#remoteStoreUnique(java.lang.String)">remoteStoreUnique</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)</code>
<div class="block">Initiate a server to server file transfer.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#removeDirectory(java.lang.String)">removeDirectory</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Removes a directory on the FTP server (if empty).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#rename(java.lang.String, java.lang.String)">rename</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;from,
            <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;to)</code>
<div class="block">Renames a remote file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#restart(long)">restart</a></strong>(long&nbsp;offset)</code>
<div class="block">Restart a <code>STREAM_TRANSFER_MODE</code> file transfer starting
 from the given offset.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#retrieveFile(java.lang.String, java.io.OutputStream)">retrieveFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                        <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)</code>
<div class="block">Retrieves a named file from the server and writes it to the given
 OutputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#retrieveFileStream(java.lang.String)">retrieveFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an InputStream from which a named file from the server
 can be read.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#sendNoOp()">sendNoOp</a></strong>()</code>
<div class="block">Sends a NOOP command to the FTP server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#sendSiteCommand(java.lang.String)">sendSiteCommand</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arguments)</code>
<div class="block">Send a site specific command.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setActiveExternalIPAddress(java.lang.String)">setActiveExternalIPAddress</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)</code>
<div class="block">Set the external IP address in active mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setActivePortRange(int, int)">setActivePortRange</a></strong>(int&nbsp;minPort,
                                    int&nbsp;maxPort)</code>
<div class="block">Set the client side port range in active mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setAutodetectUTF8(boolean)">setAutodetectUTF8</a></strong>(boolean&nbsp;autodetect)</code>
<div class="block">Enables or disables automatic server encoding detection (only UTF-8 supported).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setBufferSize(int)">setBufferSize</a></strong>(int&nbsp;bufSize)</code>
<div class="block">Set the internal buffer size for buffered data streams.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setControlKeepAliveReplyTimeout(int)">setControlKeepAliveReplyTimeout</a></strong>(int&nbsp;timeout)</code>
<div class="block">Set how long to wait for control keep-alive message replies.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setControlKeepAliveTimeout(long)">setControlKeepAliveTimeout</a></strong>(long&nbsp;controlIdle)</code>
<div class="block">Set the time to wait between sending control connection keepalive messages
 when processing file upload or download.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setCopyStreamListener(org.apache.commons.net.io.CopyStreamListener)">setCopyStreamListener</a></strong>(<a href="../../../../../org/apache/commons/net/io/CopyStreamListener.html" title="interface in org.apache.commons.net.io">CopyStreamListener</a>&nbsp;listener)</code>
<div class="block">Set the listener to be used when performing store/retrieve operations.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setDataTimeout(int)">setDataTimeout</a></strong>(int&nbsp;timeout)</code>
<div class="block">Sets the timeout in milliseconds to use when reading from the
 data connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileStructure(int)">setFileStructure</a></strong>(int&nbsp;structure)</code>
<div class="block">Sets the file structure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileTransferMode(int)">setFileTransferMode</a></strong>(int&nbsp;mode)</code>
<div class="block">Sets the transfer mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileType(int)">setFileType</a></strong>(int&nbsp;fileType)</code>
<div class="block">Sets the file type to be transferred.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setFileType(int, int)">setFileType</a></strong>(int&nbsp;fileType,
                      int&nbsp;formatOrByteSize)</code>
<div class="block">Sets the file type to be transferred and the format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setListHiddenFiles(boolean)">setListHiddenFiles</a></strong>(boolean&nbsp;listHiddenFiles)</code>
<div class="block">You can set this to true if you would like to get hidden files when <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(java.lang.String)</code></a> too.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setModificationTime(java.lang.String, java.lang.String)">setModificationTime</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)</code>
<div class="block">Issue the FTP MFMT command (not supported by all servers) which sets the last
 modified time of a file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setParserFactory(org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)">setParserFactory</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser">FTPFileEntryParserFactory</a>&nbsp;parserFactory)</code>
<div class="block">set the factory used for parser creation to the supplied factory object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setPassiveLocalIPAddress(java.net.InetAddress)">setPassiveLocalIPAddress</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;inetAddress)</code>
<div class="block">Set the local IP address to use in passive mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setPassiveLocalIPAddress(java.lang.String)">setPassiveLocalIPAddress</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)</code>
<div class="block">Set the local IP address to use in passive mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setPassiveNatWorkaround(boolean)">setPassiveNatWorkaround</a></strong>(boolean&nbsp;enabled)</code>
<div class="block">Enable or disable passive mode NAT workaround.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setReceieveDataSocketBufferSize(int)">setReceieveDataSocketBufferSize</a></strong>(int&nbsp;bufSize)</code>
<div class="block">Sets the value to be used for the data socket SO_RCVBUF option.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRemoteVerificationEnabled(boolean)">setRemoteVerificationEnabled</a></strong>(boolean&nbsp;enable)</code>
<div class="block">Enable or disable verification that the remote host taking part
 of a data connection is the same as the host to which the control
 connection is attached.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setReportActiveExternalIPAddress(java.lang.String)">setReportActiveExternalIPAddress</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)</code>
<div class="block">Set the external IP address to report in EPRT/PORT commands in active mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)">setRestartOffset</a></strong>(long&nbsp;offset)</code>
<div class="block">Sets the restart offset for file transfers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setSendDataSocketBufferSize(int)">setSendDataSocketBufferSize</a></strong>(int&nbsp;bufSize)</code>
<div class="block">Sets the value to be used for the data socket SO_SNDBUF option.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setUseEPSVwithIPv4(boolean)">setUseEPSVwithIPv4</a></strong>(boolean&nbsp;selected)</code>
<div class="block">Set whether to use EPSV with IPv4.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeFile(java.lang.String, java.io.InputStream)">storeFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                  <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using the given name and taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeFileStream(java.lang.String)">storeFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFile(java.io.InputStream)">storeUniqueFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using a unique name assigned by the
 server and taking input from the given InputStream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFile(java.lang.String, java.io.InputStream)">storeUniqueFile</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                              <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)</code>
<div class="block">Stores a file on the server using a unique name derived from the
 given name and taking input
 from the given InputStream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFileStream()">storeUniqueFileStream</a></strong>()</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name assigned by the server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#storeUniqueFileStream(java.lang.String)">storeUniqueFileStream</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)</code>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name derived from the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#structureMount(java.lang.String)">structureMount</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">Issue the FTP SMNT command.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.net.ftp.FTP">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.commons.net.ftp.<a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></h3>
<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#__getReplyNoReport()">__getReplyNoReport</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#__noop()">__noop</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#abor()">abor</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#acct(java.lang.String)">acct</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int)">allo</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int, int)">allo</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#appe(java.lang.String)">appe</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#cdup()">cdup</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#cwd(java.lang.String)">cwd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#dele(java.lang.String)">dele</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#eprt(java.net.InetAddress, int)">eprt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#epsv()">epsv</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#feat()">feat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getCommandSupport()">getCommandSupport</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getControlEncoding()">getControlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReply()">getReply</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()">getReplyCode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()">getReplyString</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()">getReplyStrings</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#help()">help</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#help(java.lang.String)">help</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#isStrictMultilineParsing()">isStrictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#list()">list</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#list(java.lang.String)">list</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mdtm(java.lang.String)">mdtm</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mfmt(java.lang.String, java.lang.String)">mfmt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mkd(java.lang.String)">mkd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlsd()">mlsd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlsd(java.lang.String)">mlsd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlst()">mlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlst(java.lang.String)">mlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#mode(int)">mode</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst()">nlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst(java.lang.String)">nlst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#noop()">noop</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pass(java.lang.String)">pass</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pasv()">pasv</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#port(java.net.InetAddress, int)">port</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#pwd()">pwd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#quit()">quit</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rein()">rein</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rest(java.lang.String)">rest</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#retr(java.lang.String)">retr</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rmd(java.lang.String)">rmd</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnfr(java.lang.String)">rnfr</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnto(java.lang.String)">rnto</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd, java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int, java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String, java.lang.String)">sendCommand</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#setControlEncoding(java.lang.String)">setControlEncoding</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#setStrictMultilineParsing(boolean)">setStrictMultilineParsing</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#site(java.lang.String)">site</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#smnt(java.lang.String)">smnt</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat()">stat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat(java.lang.String)">stat</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stor(java.lang.String)">stor</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou()">stou</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou(java.lang.String)">stou</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#stru(int)">stru</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#syst()">syst</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int)">type</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int, int)">type</a>, <a href="../../../../../org/apache/commons/net/ftp/FTP.html#user(java.lang.String)">user</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#addProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">addProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#createCommandSupport()">createCommandSupport</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#fireCommandSent(java.lang.String, java.lang.String)">fireCommandSent</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#fireReplyReceived(int, java.lang.String)">fireReplyReceived</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getCharset()">getCharset</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getCharsetName()">getCharsetName</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getConnectTimeout()">getConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultPort()">getDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultTimeout()">getDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getKeepAlive()">getKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalAddress()">getLocalAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalPort()">getLocalPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getProxy()">getProxy</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getReceiveBufferSize()">getReceiveBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemoteAddress()">getRemoteAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemotePort()">getRemotePort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSendBufferSize()">getSendBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getServerSocketFactory()">getServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoLinger()">getSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoTimeout()">getSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getTcpNoDelay()">getTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#isAvailable()">isAvailable</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#isConnected()">isConnected</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#removeProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">removeProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setCharset(java.nio.charset.Charset)">setCharset</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setConnectTimeout(int)">setConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultPort(int)">setDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultTimeout(int)">setDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setKeepAlive(boolean)">setKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setProxy(java.net.Proxy)">setProxy</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setReceiveBufferSize(int)">setReceiveBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSendBufferSize(int)">setSendBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setServerSocketFactory(javax.net.ServerSocketFactory)">setServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSocketFactory(javax.net.SocketFactory)">setSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoLinger(boolean, int)">setSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoTimeout(int)">setSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setTcpNoDelay(boolean)">setTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#verifyRemote(java.net.Socket)">verifyRemote</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="FTP_SYSTEM_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FTP_SYSTEM_TYPE</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.285">FTP_SYSTEM_TYPE</a></pre>
<div class="block">The system property ("org.apache.commons.net.ftp.systemType") which can be used to override the system type.<br/>
 If defined, the value will be used to create any automatically created parsers.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.FTP_SYSTEM_TYPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FTP_SYSTEM_TYPE_DEFAULT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FTP_SYSTEM_TYPE_DEFAULT</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.293">FTP_SYSTEM_TYPE_DEFAULT</a></pre>
<div class="block">The system property ("org.apache.commons.net.ftp.systemType.default") which can be used as the default system type.<br/>
 If defined, the value will be used if the SYST command fails.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.FTP_SYSTEM_TYPE_DEFAULT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="SYSTEM_TYPE_PROPERTIES">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SYSTEM_TYPE_PROPERTIES</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.309">SYSTEM_TYPE_PROPERTIES</a></pre>
<div class="block">The name of an optional systemType properties file ("/systemType.properties"), which is loaded
 using <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true#getResourceAsStream(java.lang.String)" title="class or interface in java.lang"><code>Class.getResourceAsStream(String)</code></a>.<br/>
 The entries are the systemType (as determined by <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a>)
 and the values are the replacement type or parserClass, which is passed to
 <a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html#createFileEntryParser(java.lang.String)"><code>FTPFileEntryParserFactory.createFileEntryParser(String)</code></a>.<br/>
 For example:
 <pre>
 Plan 9=Unix
 OS410=org.apache.commons.net.ftp.parser.OS400FTPEntryParser
 </pre></div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.SYSTEM_TYPE_PROPERTIES">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTIVE_LOCAL_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTIVE_LOCAL_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.318">ACTIVE_LOCAL_DATA_CONNECTION_MODE</a></pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 should connect to the client's data port to initiate a data transfer.
 This is the default data connection mode when and FTPClient instance
 is created.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.ACTIVE_LOCAL_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ACTIVE_REMOTE_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ACTIVE_REMOTE_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.325">ACTIVE_REMOTE_DATA_CONNECTION_MODE</a></pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to should connect to the other server's
 data port to initiate a data transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.ACTIVE_REMOTE_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PASSIVE_LOCAL_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PASSIVE_LOCAL_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.332">PASSIVE_LOCAL_DATA_CONNECTION_MODE</a></pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between the client (local) and server and that the server
 is in passive mode, requiring the client to connect to the
 server's data port to initiate a transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.PASSIVE_LOCAL_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PASSIVE_REMOTE_DATA_CONNECTION_MODE">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PASSIVE_REMOTE_DATA_CONNECTION_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.340">PASSIVE_REMOTE_DATA_CONNECTION_MODE</a></pre>
<div class="block">A constant indicating the FTP session is expecting all transfers
 to occur between two remote servers and that the server
 the client is connected to is in passive mode, requiring the other
 server to connect to the first server's data port to initiate a data
 transfer.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTPClient.PASSIVE_REMOTE_DATA_CONNECTION_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="FTPClient()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FTPClient</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.457">FTPClient</a>()</pre>
<div class="block">Default FTPClient constructor.  Creates a new FTPClient instance
 with the data connection mode set to
 <code> ACTIVE_LOCAL_DATA_CONNECTION_MODE </code>, the file type
 set to <code> FTP.ASCII_FILE_TYPE </code>, the
 file format set to <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
 the file structure set to <code> FTP.FILE_STRUCTURE </code>, and
 the transfer mode set to <code> FTP.STREAM_TRANSFER_MODE </code>.
 <p>
 The list parsing auto-detect feature can be configured to use lenient future
 dates (short dates may be up to one day in the future) as follows:
 <pre>
 FTPClient ftp = new FTPClient();
 FTPClientConfig config = new FTPClientConfig();
 config.setLenientFutureDates(true);
 ftp.configure(config );
 </pre></div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="_parsePassiveModeReply(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_parsePassiveModeReply</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.543">_parsePassiveModeReply</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;reply)
                               throws <a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net">MalformedServerReplyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net">MalformedServerReplyException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="_parseExtendedPassiveModeReply(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_parseExtendedPassiveModeReply</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.586">_parseExtendedPassiveModeReply</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;reply)
                                       throws <a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net">MalformedServerReplyException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net">MalformedServerReplyException</a></code></dd></dl>
</li>
</ul>
<a name="_storeFile(java.lang.String, java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_storeFile</h4>
<pre>protected&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.630">_storeFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                 <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                 <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                      throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="_storeFileStream(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_storeFileStream</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.685">_storeFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                            <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="_openDataConnection_(int, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_openDataConnection_</h4>
<pre><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.731">_openDataConnection_</a>(int&nbsp;command,
                                     <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>(3.3) Use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#_openDataConnection_(org.apache.commons.net.ftp.FTPCmd, java.lang.String)"><code>_openDataConnection_(FTPCmd, String)</code></a> instead</i></div>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.  If a restart
 offset has been set with <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 a REST command is issued to the server with the offset as
 an argument before establishing the data connection.  Active
 mode connections also cause a local PORT command to be issued.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The int representation of the FTP command to send.</dd><dd><code>arg</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Socket corresponding to the established data connection.
         Null is returned if an FTP protocol error is reported at
         any point during the establishment and initialization of
         the connection.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="_openDataConnection_(org.apache.commons.net.ftp.FTPCmd, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_openDataConnection_</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.756">_openDataConnection_</a>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.  If a restart
 offset has been set with <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 a REST command is issued to the server with the offset as
 an argument before establishing the data connection.  Active
 mode connections also cause a local PORT command to be issued.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The int representation of the FTP command to send.</dd><dd><code>arg</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Socket corresponding to the established data connection.
         Null is returned if an FTP protocol error is reported at
         any point during the establishment and initialization of
         the connection.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="_openDataConnection_(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_openDataConnection_</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.781">_openDataConnection_</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arg)
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Establishes a data connection with the FTP server, returning
 a Socket for the connection if successful.  If a restart
 offset has been set with <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 a REST command is issued to the server with the offset as
 an argument before establishing the data connection.  Active
 mode connections also cause a local PORT command to be issued.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The text representation of the FTP command to send.</dd><dd><code>arg</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A Socket corresponding to the established data connection.
         Null is returned if an FTP protocol error is reported at
         any point during the establishment and initialization of
         the connection.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="_connectAction_()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_connectAction_</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.922">_connectAction_</a>()
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()">FTP</a></code></strong></div>
<div class="block">Initiates control connections and gets initial reply.
 Initializes <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_"><code>FTP._controlInput_</code></a> and <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_"><code>FTP._controlOutput_</code></a>.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()">_connectAction_</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="setDataTimeout(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDataTimeout</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.958">setDataTimeout</a>(int&nbsp;timeout)</pre>
<div class="block">Sets the timeout in milliseconds to use when reading from the
 data connection.  This timeout will be set immediately after
 opening the data connection, provided that the value is &ge; 0.
 <p>
 <b>Note:</b> the timeout will also be applied when calling accept()
 whilst establishing an active local data connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - The default timeout in milliseconds that is used when
        opening a data connection socket. The value 0 means an infinite timeout.</dd></dl>
</li>
</ul>
<a name="setParserFactory(org.apache.commons.net.ftp.parser.FTPFileEntryParserFactory)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setParserFactory</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.972">setParserFactory</a>(<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser">FTPFileEntryParserFactory</a>&nbsp;parserFactory)</pre>
<div class="block">set the factory used for parser creation to the supplied factory object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parserFactory</code> - factory object used to create FTPFileEntryParsers</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a></dd></dl>
</li>
</ul>
<a name="disconnect()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disconnect</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.984">disconnect</a>()
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Closes the connection to the FTP server and restores
 connection parameters to the default values.
 <p></div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()">disconnect</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp">FTP</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an error occurs while disconnecting.</dd></dl>
</li>
</ul>
<a name="setRemoteVerificationEnabled(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRemoteVerificationEnabled</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1000">setRemoteVerificationEnabled</a>(boolean&nbsp;enable)</pre>
<div class="block">Enable or disable verification that the remote host taking part
 of a data connection is the same as the host to which the control
 connection is attached.  The default is for verification to be
 enabled.  You may set this value at any time, whether the
 FTPClient is currently connected or not.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enable</code> - True to enable verification, false to disable verification.</dd></dl>
</li>
</ul>
<a name="isRemoteVerificationEnabled()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isRemoteVerificationEnabled</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1012">isRemoteVerificationEnabled</a>()</pre>
<div class="block">Return whether or not verification of the remote host participating
 in data connections is enabled.  The default behavior is for
 verification to be enabled.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if verification is enabled, false if not.</dd></dl>
</li>
</ul>
<a name="login(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>login</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1031">login</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
            <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)
              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Login to the FTP server using the provided username and password.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - The username to login under.</dd><dd><code>password</code> - The password to use.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="login(java.lang.String, java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>login</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1067">login</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username,
            <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password,
            <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)
              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Login to the FTP server using the provided username, password,
 and account.  If no account is required by the server, only
 the username and password, the account information is not used.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - The username to login under.</dd><dd><code>password</code> - The password to use.</dd><dd><code>account</code> - The account to use.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="logout()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logout</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1107">logout</a>()
               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Logout of the FTP server by sending the QUIT command.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="changeWorkingDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeWorkingDirectory</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1126">changeWorkingDirectory</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Change the current working directory of the FTP session.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The new current working directory.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="changeToParentDirectory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>changeToParentDirectory</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1144">changeToParentDirectory</a>()
                                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Change to the parent directory of the current working directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="structureMount(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>structureMount</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1163">structureMount</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP SMNT command.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to mount.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="enterLocalActiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterLocalActiveMode</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1208">enterLocalActiveMode</a>()</pre>
<div class="block">Set the current data connection mode to
 <code>ACTIVE_LOCAL_DATA_CONNECTION_MODE</code>.  No communication
 with the FTP server is conducted, but this causes all future data
 transfers to require the FTP server to connect to the client's
 data port.  Additionally, to accommodate differences between socket
 implementations on different platforms, this method causes the
 client to issue a PORT command before every data transfer.</div>
</li>
</ul>
<a name="enterLocalPassiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterLocalPassiveMode</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1231">enterLocalPassiveMode</a>()</pre>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code>.  Use this
 method only for data transfers between the client and server.
 This method causes a PASV (or EPSV) command to be issued to the server
 before the opening of every data connection, telling the server to
 open a data port to which the client will connect to conduct
 data transfers.  The FTPClient will stay in
 <code> PASSIVE_LOCAL_DATA_CONNECTION_MODE </code> until the
 mode is changed by calling some other method such as
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a>
 <p>
 <b>N.B.</b> currently calling any connect method will reset the mode to
 ACTIVE_LOCAL_DATA_CONNECTION_MODE.</div>
</li>
</ul>
<a name="enterRemoteActiveMode(java.net.InetAddress, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterRemoteActiveMode</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1265">enterRemoteActiveMode</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
                            int&nbsp;port)
                              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Set the current data connection mode to
 <code> ACTIVE_REMOTE_DATA_CONNECTION </code>.  Use this method only
 for server to server data transfers.  This method issues a PORT
 command to the server, indicating the other server and port to which
 it should connect for data transfers.  You must call this method
 before EVERY server to server transfer attempt.  The FTPClient will
 NOT automatically continue to issue PORT commands.  You also
 must remember to call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a> if you
 wish to return to the normal data connection mode.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>host</code> - The passive mode server accepting connections for data
             transfers.</dd><dd><code>port</code> - The passive mode server's data port.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="enterRemotePassiveMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enterRemotePassiveMode</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1300">enterRemotePassiveMode</a>()
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Set the current data connection mode to
 <code> PASSIVE_REMOTE_DATA_CONNECTION_MODE </code>.  Use this
 method only for server to server data transfers.
 This method issues a PASV command to the server, telling it to
 open a data port to which the active server will connect to conduct
 data transfers.  You must call this method
 before EVERY server to server transfer attempt.  The FTPClient will
 NOT automatically continue to issue PASV commands.  You also
 must remember to call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalActiveMode()"><code>enterLocalActiveMode() </code></a> if you
 wish to return to the normal data connection mode.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getPassiveHost()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassiveHost</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1324">getPassiveHost</a>()</pre>
<div class="block">Returns the hostname or IP address (in the form of a string) returned
 by the server when entering passive mode.  If not in passive mode,
 returns null.  This method only returns a valid value AFTER a
 data connection has been opened after a call to
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 This is because FTPClient sends a PASV command to the server only
 just before opening a data connection, and not when you call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The passive host name if in passive mode, otherwise null.</dd></dl>
</li>
</ul>
<a name="getPassivePort()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassivePort</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1341">getPassivePort</a>()</pre>
<div class="block">If in passive mode, returns the data port of the passive host.
 This method only returns a valid value AFTER a
 data connection has been opened after a call to
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 This is because FTPClient sends a PASV command to the server only
 just before opening a data connection, and not when you call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#enterLocalPassiveMode()"><code>enterLocalPassiveMode()</code></a>.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The data port of the passive server.  If not in passive
         mode, undefined.</dd></dl>
</li>
</ul>
<a name="getDataConnectionMode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDataConnectionMode</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1354">getDataConnectionMode</a>()</pre>
<div class="block">Returns the current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current data connection mode (one of the
 <code> _DATA_CONNECTION_MODE </code> constants.</dd></dl>
</li>
</ul>
<a name="setActivePortRange(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setActivePortRange</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1423">setActivePortRange</a>(int&nbsp;minPort,
                      int&nbsp;maxPort)</pre>
<div class="block">Set the client side port range in active mode.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>minPort</code> - The lowest available port (inclusive).</dd><dd><code>maxPort</code> - The highest available port (inclusive).</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setActiveExternalIPAddress(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setActiveExternalIPAddress</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1437">setActiveExternalIPAddress</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)
                                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></pre>
<div class="block">Set the external IP address in active mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ipAddress</code> - The external IP address of this machine.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></code> - if the ipAddress cannot be resolved</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setPassiveLocalIPAddress(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPassiveLocalIPAddress</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1449">setPassiveLocalIPAddress</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)
                              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></pre>
<div class="block">Set the local IP address to use in passive mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ipAddress</code> - The local IP address of this machine.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></code> - if the ipAddress cannot be resolved</dd></dl>
</li>
</ul>
<a name="setPassiveLocalIPAddress(java.net.InetAddress)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPassiveLocalIPAddress</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1460">setPassiveLocalIPAddress</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;inetAddress)</pre>
<div class="block">Set the local IP address to use in passive mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inetAddress</code> - The local IP address of this machine.</dd></dl>
</li>
</ul>
<a name="getPassiveLocalIPAddress()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPassiveLocalIPAddress</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1471">getPassiveLocalIPAddress</a>()</pre>
<div class="block">Set the local IP address in passive mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The local IP address in passive mode.</dd></dl>
</li>
</ul>
<a name="setReportActiveExternalIPAddress(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setReportActiveExternalIPAddress</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1485">setReportActiveExternalIPAddress</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;ipAddress)
                                      throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></pre>
<div class="block">Set the external IP address to report in EPRT/PORT commands in active mode.
 Useful when there are multiple network cards.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ipAddress</code> - The external IP address of this machine.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></code> - if the ipAddress cannot be resolved</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getReportHostAddress()"><code>getReportHostAddress()</code></a></dd></dl>
</li>
</ul>
<a name="setFileType(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileType</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1517">setFileType</a>(int&nbsp;fileType)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file type to be transferred.  This should be one of
 <code> FTP.ASCII_FILE_TYPE </code>, <code> FTP.BINARY_FILE_TYPE</code>,
 etc.  The file type only needs to be set when you want to change the
 type.  After changing it, the new type stays in effect until you change
 it again.  The default file type is <code> FTP.ASCII_FILE_TYPE </code>
 if this method is never called.
 <br>
 The server default is supposed to be ASCII (see RFC 959), however many
 ftp servers default to BINARY. <b>To ensure correct operation with all servers,
 always specify the appropriate file type after connecting to the server.</b>
 <br>
 <p>
 <b>N.B.</b> currently calling any connect method will reset the type to
 FTP.ASCII_FILE_TYPE.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The <code> _FILE_TYPE </code> constant indcating the
                 type of file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileType(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileType</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1565">setFileType</a>(int&nbsp;fileType,
                  int&nbsp;formatOrByteSize)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file type to be transferred and the format.  The type should be
 one of  <code> FTP.ASCII_FILE_TYPE </code>,
 <code> FTP.BINARY_FILE_TYPE </code>, etc.  The file type only needs to
 be set when you want to change the type.  After changing it, the new
 type stays in effect until you change it again.  The default file type
 is <code> FTP.ASCII_FILE_TYPE </code> if this method is never called.
 <br>
 The server default is supposed to be ASCII (see RFC 959), however many
 ftp servers default to BINARY. <b>To ensure correct operation with all servers,
 always specify the appropriate file type after connecting to the server.</b>
 <br>
 The format should be one of the FTP class <code> TEXT_FORMAT </code>
 constants, or if the type is <code> FTP.LOCAL_FILE_TYPE </code>, the
 format should be the byte size for that type.  The default format
 is <code> FTP.NON_PRINT_TEXT_FORMAT </code> if this method is never
 called.
 <p>
 <b>N.B.</b> currently calling any connect method will reset the type to
 FTP.ASCII_FILE_TYPE and the formatOrByteSize to FTP.NON_PRINT_TEXT_FORMAT.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The <code> _FILE_TYPE </code> constant indcating the
                 type of file.</dd><dd><code>formatOrByteSize</code> - The format of the file (one of the
              <code>_FORMAT</code> constants.  In the case of
              <code>LOCAL_FILE_TYPE</code>, the byte size.
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileStructure(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileStructure</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1594">setFileStructure</a>(int&nbsp;structure)
                         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the file structure.  The default structure is
 <code> FTP.FILE_STRUCTURE </code> if this method is never called
 or if a connect method is called.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>structure</code> - The structure of the file (one of the FTP class
         <code>_STRUCTURE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="setFileTransferMode(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFileTransferMode</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1621">setFileTransferMode</a>(int&nbsp;mode)
                            throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets the transfer mode.  The default transfer mode
 <code> FTP.STREAM_TRANSFER_MODE </code> if this method is never called
 or if a connect method is called.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mode</code> - The new transfer mode to use (one of the FTP class
         <code>_TRANSFER_MODE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteRetrieve(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteRetrieve</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1647">remoteRetrieve</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to retrieve a given file from
 the other server.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name of the file to retrieve.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStore(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStore</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1674">remoteStore</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using the given filename.  The other server must
 have had a <code> remoteRetrieve </code> issued to it by another
 FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name to call the file that is to be stored.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStoreUnique(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStoreUnique</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1702">remoteStoreUnique</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                          throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using a unique filename based on the given filename.
 The other server must have had a <code> remoteRetrieve </code> issued
 to it by another FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name on which to base the filename of the file
                  that is to be stored.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteStoreUnique()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteStoreUnique</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1730">remoteStoreUnique</a>()
                          throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to store a file on
 the other server using a unique filename.
 The other server must have had a <code> remoteRetrieve </code> issued
 to it by another FTPClient.  Many FTP servers require that a base
 filename be given from which the unique filename can be derived.  For
 those servers use the other version of <code> remoteStoreUnique</code>
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="remoteAppend(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remoteAppend</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1758">remoteAppend</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filename)
                     throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiate a server to server file transfer.  This method tells the
 server to which the client is connected to append to a given file on
 the other server.  The other server must have had a
 <code> remoteRetrieve </code> issued to it by another FTPClient.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filename</code> - The name of the file to be appended to, or if the
        file does not exist, the name to call the file being stored.
 <p></dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="completePendingCommand()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>completePendingCommand</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1811">completePendingCommand</a>()
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">There are a few FTPClient methods that do not complete the
 entire sequence of FTP commands to complete a transaction.  These
 commands require some action by the programmer after the reception
 of a positive intermediate command.  After the programmer's code
 completes its actions, it must call this method to receive
 the completion reply from the server and verify the success of the
 entire transaction.
 <p>
 For example,
 <pre>
 InputStream input;
 OutputStream output;
 input  = new FileInputStream("foobaz.txt");
 output = ftp.storeFileStream("foobar.txt")
 if(!FTPReply.isPositiveIntermediate(ftp.getReplyCode())) {
     input.close();
     output.close();
     ftp.logout();
     ftp.disconnect();
     System.err.println("File transfer failed.");
     System.exit(1);
 }
 Util.copyStream(input, output);
 input.close();
 output.close();
 // Must call completePendingCommand() to finish command.
 if(!ftp.completePendingCommand()) {
     ftp.logout();
     ftp.disconnect();
     System.err.println("File transfer failed.");
     System.exit(1);
 }
 </pre>
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="retrieveFile(java.lang.String, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1842">retrieveFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                   <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)
                     throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Retrieves a named file from the server and writes it to the given
 OutputStream.  This method does NOT close the given OutputStream.
 If the current file type is ASCII, line separators in the file are
 converted to the local representation.
 <p>
 Note: if you have used <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 the file data will start from the selected offset.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd><dd><code>local</code> - The local OutputStream to which to write the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="_retrieveFile(java.lang.String, java.lang.String, java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_retrieveFile</h4>
<pre>protected&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1851">_retrieveFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                    <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;local)
                         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="retrieveFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveFileStream</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1916">retrieveFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an InputStream from which a named file from the server
 can be read.  If the current file type is ASCII, the returned
 InputStream will convert line separators in the file to
 the local representation.  You must close the InputStream when you
 finish reading from it.  The InputStream itself will take care of
 closing the parent data connection socket upon being closed.  To
 finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p>
 Note: if you have used <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setRestartOffset(long)"><code>setRestartOffset(long)</code></a>,
 the file data will start from the selected offset.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An InputStream from which the remote file can be read.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="_retrieveFileStream(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_retrieveFileStream</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1924">_retrieveFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                              <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1</dd></dl>
</li>
</ul>
<a name="storeFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.1973">storeFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                  throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using the given name and taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name to give the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeFileStream</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2005">storeFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                             throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using the given name.  If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name to give the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="appendFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2035">appendFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                 <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Appends to a file on the server with the given name, taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the data to
                be appended to the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="appendFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendFileStream</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2066">appendFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to append
 to a file on the server with the given name.  If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be appended.
      If the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFile(java.lang.String, java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2097">storeUniqueFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote,
                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using a unique name derived from the
 given name and taking input
 from the given InputStream.  This method does NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name on which to base the unique name given to
                the remote file.</dd><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFileStream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFileStream</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2131">storeUniqueFileStream</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;remote)
                                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name derived from the given name.
 If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>remote</code> - The name on which to base the unique name given to
                the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFile(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2160">storeUniqueFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;local)
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Stores a file on the server using a unique name assigned by the
 server and taking input from the given InputStream.  This method does
 NOT close the given
 InputStream.  If the current file type is ASCII, line separators in
 the file are transparently converted to the NETASCII format (i.e.,
 you should not attempt to create a special InputStream to do this).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>local</code> - The local InputStream from which to read the file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/io/CopyStreamException.html" title="class in org.apache.commons.net.io">CopyStreamException</a></code> - If an I/O error occurs while actually
      transferring the file.  The CopyStreamException allows you to
      determine the number of bytes transferred and the IOException
      causing the error.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="storeUniqueFileStream()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeUniqueFileStream</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2190">storeUniqueFileStream</a>()
                                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns an OutputStream through which data can be written to store
 a file on the server using a unique name assigned by the server.
 If the current file type
 is ASCII, the returned OutputStream will convert line separators in
 the file to the NETASCII format  (i.e., you should not attempt to
 create a special OutputStream to do this).  You must close the
 OutputStream when you finish writing to it.  The OutputStream itself
 will take care of closing the parent data connection socket upon being
 closed.  To finalize the file transfer you must call
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#completePendingCommand()"><code>completePendingCommand </code></a> and
 check its return value to verify success.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>An OutputStream through which the remote file can be written.  If
      the data connection cannot be opened (e.g., the file does not
      exist), null is returned (in which case you may check the reply
      code to determine the exact reason for failure).</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="allocate(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2208">allocate</a>(int&nbsp;bytes)
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Reserve a number of bytes on the server for the next file transfer.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes which the server should allocate.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="features()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>features</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2230">features</a>()
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for supported features. The server may reply with a list of server-supported exensions.
 For example, a typical client-server interaction might be (from RFC 2389):
 <pre>
        C> feat
        S> 211-Extensions supported:
        S>  MLST size*;create;modify*;perm;media-type
        S>  SIZE
        S>  COMPRESSION
        S>  MDTM
        S> 211 END
 </pre></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://www.faqs.org/rfcs/rfc2389.html">http://www.faqs.org/rfcs/rfc2389.html</a></dd></dl>
</li>
</ul>
<a name="featureValues(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>featureValues</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2244">featureValues</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)
                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for a supported feature, and returns its values (if any).
 Caches the parsed response to avoid resending the command repeatedly.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>if the feature is present, returns the feature values (empty array if none)
 Returns <code>null</code> if the feature is not found or the command failed.
 Check <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a> if so.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="featureValue(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>featureValue</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2266">featureValue</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for a supported feature, and returns the its value (if any).
 Caches the parsed response to avoid resending the command repeatedly.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>if the feature is present, returns the feature value or the empty string
 if the feature exists but has no value.
 Returns <code>null</code> if the feature is not found or the command failed.
 Check <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a> if so.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="hasFeature(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasFeature</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2286">hasFeature</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for a supported feature.
 Caches the parsed response to avoid resending the command repeatedly.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>feature</code> - the name of the feature; it is converted to upper case.</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the feature is present, <code>false</code> if the feature is not present
 or the <a href="../../../../../org/apache/commons/net/ftp/FTP.html#feat()"><code>FTP.feat()</code></a> command failed. Check <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a>
 if it is necessary to distinguish these cases.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="hasFeature(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasFeature</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2308">hasFeature</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;feature,
                 <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Query the server for a supported feature with particular value,
 for example "AUTH SSL" or "AUTH TLS".
 Caches the parsed response to avoid resending the command repeatedly.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>feature</code> - the name of the feature; it is converted to upper case.</dd><dd><code>value</code> - the value to find.</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the feature is present, <code>false</code> if the feature is not present
 or the <a href="../../../../../org/apache/commons/net/ftp/FTP.html#feat()"><code>FTP.feat()</code></a> command failed. Check <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a>
 if it is necessary to distinguish these cases.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="allocate(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allocate</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2369">allocate</a>(int&nbsp;bytes,
               int&nbsp;recordSize)
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Reserve space on the server for the next file transfer.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes which the server should allocate.</dd><dd><code>recordSize</code> - The size of a file record.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="doCommand(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doCommand</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2391">doCommand</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;params)
                  throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue a command and wait for the reply.
 <p>
 Should only be used with commands that return replies on the
 command channel - do not use for LIST, NLST, MLSD etc.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The command to invoke</dd><dd><code>params</code> - The parameters string, may be <code>null</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not, in which case
 call <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a>
 to get the reason.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="doCommandAsStrings(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doCommandAsStrings</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2412">doCommandAsStrings</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;params)
                            throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue a command and wait for the reply, returning it as an array of strings.
 <p>
 Should only be used with commands that return replies on the
 command channel - do not use for LIST, NLST, MLSD etc.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The command to invoke</dd><dd><code>params</code> - The parameters string, may be <code>null</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>The array of replies, or <code>null</code> if the command failed, in which case
 call <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>FTP.getReplyCode()</code></a> or <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>FTP.getReplyString()</code></a>
 to get the reason.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlistFile(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlistFile</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2430">mlistFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                  throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Get file details using the MLST command</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - the file or directory to list, may be <code></code> null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the file details, may be <code>null</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlistDir()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlistDir</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2448">mlistDir</a>()
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Generate a directory listing for the current directory using the MLSD command.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the array of file entries</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlistDir(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlistDir</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2461">mlistDir</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Generate a directory listing using the MLSD command.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - the directory name, may be <code>null</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of file entries</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlistDir(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlistDir</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2476">mlistDir</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                 <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Generate a directory listing using the MLSD command.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - the directory name, may be <code>null</code></dd><dd><code>filter</code> - the filter to apply to the responses</dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of file entries</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="restart(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restart</h4>
<pre>protected&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2501">restart</a>(long&nbsp;offset)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Restart a <code>STREAM_TRANSFER_MODE</code> file transfer starting
 from the given offset.  This will only work on FTP servers supporting
 the REST comand for the stream transfer mode.  However, most FTP
 servers support this.  Any subsequent file transfer will start
 reading or writing the remote file from the indicated offset.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>offset</code> - The offset into the remote file at which to start the
           next file transfer.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.1 (changed from private to protected)</dd></dl>
</li>
</ul>
<a name="setRestartOffset(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRestartOffset</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2523">setRestartOffset</a>(long&nbsp;offset)</pre>
<div class="block">Sets the restart offset for file transfers.
 <p>
 The restart command is not sent to the server immediately.
 It is sent when a data connection is created as part of a
 subsequent command.
 The restart marker is reset to zero after use.
 </p>
 <p>
 <b>Note: This method should only be invoked immediately prior to
 the transfer to which it applies.</b></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>offset</code> - The offset into the remote file at which to start the
           next file transfer.  This must be a value greater than or
           equal to zero.</dd></dl>
</li>
</ul>
<a name="getRestartOffset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRestartOffset</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2536">getRestartOffset</a>()</pre>
<div class="block">Fetches the restart offset.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>offset  The offset into the remote file at which to start the
           next file transfer.</dd></dl>
</li>
</ul>
<a name="rename(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rename</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2557">rename</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;from,
             <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;to)
               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Renames a remote file.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>from</code> - The name of the remote file to rename.</dd><dd><code>to</code> - The new name of the remote file.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="abort()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abort</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2579">abort</a>()
              throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Abort a transfer in progress.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="deleteFile(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deleteFile</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2597">deleteFile</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Deletes a file on the FTP server.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the file to be deleted.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="removeDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeDirectory</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2616">removeDirectory</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Removes a directory on the FTP server (if empty).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the directory to remove.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="makeDirectory(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDirectory</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2637">makeDirectory</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                      throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates a new subdirectory on the FTP server in the current directory
 (if a relative pathname is given) or where specified (if an absolute
 pathname is given).
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the directory to create.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="printWorkingDirectory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printWorkingDirectory</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2656">printWorkingDirectory</a>()
                             throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the pathname of the current working directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The pathname of the current working directory.  If it cannot
         be obtained, returns null.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="sendSiteCommand(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendSiteCommand</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2678">sendSiteCommand</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;arguments)
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Send a site specific command.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>arguments</code> - The site specific command and arguments.</dd>
<dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getSystemType()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSystemType</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2705">getSystemType</a>()
                     throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the system type from the server and returns the string.
 This value is cached for the duration of the connection after the
 first call to this method.  In other words, only the first time
 that you invoke this method will it issue a SYST command to the
 FTP server.  FTPClient will remember the value and return the
 cached value until a call to disconnect.
 <p>
 If the SYST command fails, and the system property
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTP_SYSTEM_TYPE_DEFAULT"><code>FTP_SYSTEM_TYPE_DEFAULT</code></a> is defined, then this is used instead.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The system type obtained from the server. Never null.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server (and the default
  system type property is not defined)</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="listHelp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listHelp</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2743">listHelp</a>()
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the system help information from the server and returns the
 full string.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The system help string obtained from the server.  null if the
       information could not be obtained.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listHelp(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listHelp</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2766">listHelp</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches the help information for a given command from the server and
 returns the full string.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The command on which to ask for help.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The command help string obtained from the server.  null if the
       information could not be obtained.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
  command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="sendNoOp()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendNoOp</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2788">sendNoOp</a>()
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends a NOOP command to the FTP server.  This is useful for preventing
 server timeouts.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if successfully completed, false if not.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listNames(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listNames</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2823">listNames</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Obtain a list of filenames in a directory (or just the name of a given
 file, which is not particularly useful).  This information is obtained
 through the NLST command.  If the given pathname is a directory and
 contains no files,  a zero length array is returned only
 if the FTP server returned a positive completion code, otherwise
 null is returned (the FTP server returned a 550 error No files found.).
 If the directory is not empty, an array of filenames in the directory is
 returned. If the pathname corresponds
 to a file, only that file will be listed.  The server may or may not
 expand glob expressions.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file or directory to list.
                  Warning: the server may treat a leading '-' as an
                  option introducer. If so, try using an absolute path,
                  or prefix the path with ./ (unix style servers).
                  Some servers may support "--" as meaning end of options,
                  in which case "-- -xyz" should work.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The list of filenames contained in the given path.  null if
     the list could not be obtained.  If there are no filenames in
     the directory, a zero-length array is returned.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listNames()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listNames</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2874">listNames</a>()
                   throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Obtain a list of filenames in the current working directory
 This information is obtained through the NLST command.  If the current
 directory contains no files, a zero length array is returned only
 if the FTP server returned a positive completion code, otherwise,
 null is returned (the FTP server returned a 550 error No files found.).
 If the directory is not empty, an array of filenames in the directory is
 returned.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of filenames contained in the current working
     directory.  null if the list could not be obtained.
     If there are no filenames in the directory, a zero-length array
     is returned.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="listFiles(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2927">listFiles</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory
 or for just a single file.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file or directory to list.  Since the server may
                  or may not expand glob expressions, using them here
                  is not recommended and may well cause this method to
                  fail.
                  Also, some servers treat a leading '-' as being an option.
                  To avoid this interpretation, use an absolute pathname
                  or prefix the pathname with ./ (unix style servers).
                  Some servers may support "--" as meaning end of options,
                  in which case "-- -xyz" should work.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The list of file information contained in the given path in
         the format determined by the autodetection mechanism</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="listFiles()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2974">listFiles</a>()
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of file information for the current working directory.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of file information contained in the current directory
         in the format determined by the autodetection mechanism.
         <p><b>
         NOTE:</b> This array may contain null members if any of the
         individual file listings failed to parse.  The caller should
         check each entry for null before referencing it.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="listFiles(java.lang.String, org.apache.commons.net.ftp.FTPFileFilter)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listFiles</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.2989">listFiles</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                  <a href="../../../../../org/apache/commons/net/ftp/FTPFileFilter.html" title="interface in org.apache.commons.net.ftp">FTPFileFilter</a>&nbsp;filter)
                    throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Version of <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(String)</code></a> which allows a filter to be provided.
 For example: <code>listFiles("site", FTPFileFilters.DIRECTORY);</code></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - the initial path, may be null</dd><dd><code>filter</code> - the filter, non-null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the list of FTPFile entries.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="listDirectories()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listDirectories</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3034">listDirectories</a>()
                          throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of directories contained in the current working directory.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of directories contained in the current directory
         in the format determined by the autodetection mechanism.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="listDirectories(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listDirectories</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPFile.html" title="class in org.apache.commons.net.ftp">FTPFile</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3075">listDirectories</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parent)
                          throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default system autodetect mechanism, obtain a
 list of directories contained in the specified directory.
 <p>
 This information is obtained through the LIST command.  The contents of
 the returned array is determined by the<code> FTPFileEntryParser </code>
 used.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The list of directories contained in the specified directory
         in the format determined by the autodetection mechanism.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection
                   as a result of the client being idle or some other
                   reason causing the server to send FTP reply code 421.
                   This exception may be caught either as an IOException
                   or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply
                   from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.html" title="class in org.apache.commons.net.ftp.parser"><code>DefaultFTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/parser/FTPFileEntryParserFactory.html" title="interface in org.apache.commons.net.ftp.parser"><code>FTPFileEntryParserFactory</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPFileEntryParser.html" title="interface in org.apache.commons.net.ftp"><code>FTPFileEntryParser</code></a></dd></dl>
</li>
</ul>
<a name="initiateListParsing()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3112">initiateListParsing</a>()
                                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the current working
 directory on the server
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the autodetect mechanism cannot
                   resolve the type of system we are connected with.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="initiateListParsing(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3167">initiateListParsing</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the default autodetect mechanism, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 The server may or may not expand glob expressions.  You should avoid
 using glob expressions because the return format for glob listings
 differs from server to server and will likely cause this method to fail.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.
 <p>
 <pre>
    FTPClient f=FTPClient();
    f.connect(server);
    f.login(username, password);
    FTPListParseEngine engine = f.initiateListParsing(directory);

    while (engine.hasNext()) {
       FTPFile[] files = engine.getNext(25);  // "page size" you want
       //do whatever you want with these files, display them, etc.
       //expensive FTPFile objects not created until needed.
    }
 </pre></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the autodetect mechanism cannot
                   resolve the type of system we are connected with.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="initiateListParsing(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initiateListParsing</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp">FTPListParseEngine</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3228">initiateListParsing</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parserKey,
                                     <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                                       throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Using the supplied parser key, initialize an FTPListParseEngine
 object containing a raw file information for the supplied directory.
 This information is obtained through the LIST command.  This object
 is then capable of being iterated to return a sequence of FTPFile
 objects with information filled in by the
 <code> FTPFileEntryParser </code> used.
 <p>
 The server may or may not expand glob expressions.  You should avoid
 using glob expressions because the return format for glob listings
 differs from server to server and will likely cause this method to fail.
 <p>
 This method differs from using the listFiles() methods in that
 expensive FTPFile objects are not created until needed which may be
 an advantage on large lists.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parserKey</code> - A string representing a designated code or fully-qualified
 class name of an  <code> FTPFileEntryParser </code> that should be
               used to parse each server file listing.
               May be <code>null</code>, in which case the code checks first
               the system property <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#FTP_SYSTEM_TYPE"><code>FTP_SYSTEM_TYPE</code></a>, and if that is
               not defined the SYST command is used to provide the value.
               To allow for arbitrary system types, the return from the
               SYST command is used to look up an alias for the type in the
               <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#SYSTEM_TYPE_PROPERTIES"><code>SYSTEM_TYPE_PROPERTIES</code></a> properties file if it is available.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A FTPListParseEngine object that holds the raw information and
 is capable of providing parsed FTPFile objects, one for each file
 containing information contained in the given path in the format
 determined by the <code> parser </code> parameter.   Null will be
 returned if a data connection cannot be opened.  If the current working
 directory contains no files, an empty array will be the return.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
                   of the client being idle or some other reason causing the server
                   to send FTP reply code 421.  This exception may be caught either
                   as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
                   command to the server or receiving a reply from the server.</dd>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/parser/ParserInitializationException.html" title="class in org.apache.commons.net.ftp.parser">ParserInitializationException</a></code> - Thrown if the parserKey parameter cannot be
                   resolved by the selected parser factory.
                   In the DefaultFTPEntryParserFactory, this will
                   happen when parserKey is neither
                   the fully qualified class name of a class
                   implementing the interface
                   org.apache.commons.net.ftp.FTPFileEntryParser
                   nor a string containing one of the recognized keys
                   mapping to such a parser or if class loader
                   security issues prevent its being loaded.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPListParseEngine.html" title="class in org.apache.commons.net.ftp"><code>FTPListParseEngine</code></a></dd></dl>
</li>
</ul>
<a name="getListArguments(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListArguments</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3341">getListArguments</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</pre>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="getStatus()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3373">getStatus</a>()
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP STAT command to the server.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The status information returned by the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getStatus(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3395">getStatus</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                 throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP STAT command to the server for a given pathname.  This
 should produce a listing of the file or directory.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The status information returned by the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending a
      command to the server or receiving a reply from the server.</dd></dl>
</li>
</ul>
<a name="getModificationTime(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getModificationTime</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3415">getModificationTime</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
                           throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP MDTM command (not supported by all servers to retrieve the last
 modification time of a file. The modification string should be in the
 ISO 3077 form "YYYYMMDDhhmmss(.xxx)?". The timestamp represented should also be in
 GMT, but not all FTP servers honour this.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file path to query.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A string representing the last file modification time in <code>YYYYMMDDhhmmss</code> format.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="setModificationTime(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setModificationTime</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3440">setModificationTime</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
                          <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)
                            throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Issue the FTP MFMT command (not supported by all servers) which sets the last
 modified time of a file.

 The timestamp should be in the form <code>YYYYMMDDhhmmss</code>. It should also
 be in GMT, but not all servers honour this.

 An FTP server would indicate its support of this feature by including "MFMT"
 in its response to the FEAT command, which may be retrieved by FTPClient.features()</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The file path for which last modified time is to be changed.</dd><dd><code>timeval</code> - The timestamp to set to, in <code>YYYYMMDDhhmmss</code> format.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if successfully set, false if not</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an I/O error occurs.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://tools.ietf.org/html/draft-somers-ftp-mfxx-04">http://tools.ietf.org/html/draft-somers-ftp-mfxx-04</a></dd></dl>
</li>
</ul>
<a name="setBufferSize(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBufferSize</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3450">setBufferSize</a>(int&nbsp;bufSize)</pre>
<div class="block">Set the internal buffer size for buffered data streams.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bufSize</code> - The size of the buffer. Use a non-positive value to use the default.</dd></dl>
</li>
</ul>
<a name="getBufferSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferSize</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3458">getBufferSize</a>()</pre>
<div class="block">Retrieve the current internal buffer size for buffered data streams.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current buffer size.</dd></dl>
</li>
</ul>
<a name="setSendDataSocketBufferSize(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSendDataSocketBufferSize</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3469">setSendDataSocketBufferSize</a>(int&nbsp;bufSize)</pre>
<div class="block">Sets the value to be used for the data socket SO_SNDBUF option.
 If the value is positive, the option will be set when the data socket has been created.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bufSize</code> - The size of the buffer, zero or negative means the value is ignored.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="getSendDataSocketBufferSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSendDataSocketBufferSize</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3478">getSendDataSocketBufferSize</a>()</pre>
<div class="block">Retrieve the value to be used for the data socket SO_SNDBUF option.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current buffer size.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="setReceieveDataSocketBufferSize(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setReceieveDataSocketBufferSize</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3489">setReceieveDataSocketBufferSize</a>(int&nbsp;bufSize)</pre>
<div class="block">Sets the value to be used for the data socket SO_RCVBUF option.
 If the value is positive, the option will be set when the data socket has been created.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bufSize</code> - The size of the buffer, zero or negative means the value is ignored.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="getReceiveDataSocketBufferSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReceiveDataSocketBufferSize</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3498">getReceiveDataSocketBufferSize</a>()</pre>
<div class="block">Retrieve the value to be used for the data socket SO_RCVBUF option.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current buffer size.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="configure(org.apache.commons.net.ftp.FTPClientConfig)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configure</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3511">configure</a>(<a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp">FTPClientConfig</a>&nbsp;config)</pre>
<div class="block">Implementation of the <a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><code>Configurable</code></a> interface.
 In the case of this class, configuring merely makes the config object available for the
 factory methods that construct parsers.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/Configurable.html#configure(org.apache.commons.net.ftp.FTPClientConfig)">configure</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp">Configurable</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - <a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><code>FTPClientConfig</code></a> object used to
 provide non-standard configurations to the parser.</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.4</dd></dl>
</li>
</ul>
<a name="setListHiddenFiles(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setListHiddenFiles</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3524">setListHiddenFiles</a>(boolean&nbsp;listHiddenFiles)</pre>
<div class="block">You can set this to true if you would like to get hidden files when <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String)"><code>listFiles(java.lang.String)</code></a> too.
 A <code>LIST -a</code> will be issued to the ftp server.
 It depends on your ftp server if you need to call this method, also dont expect to get rid
 of hidden files if you call this method with "false".</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>listHiddenFiles</code> - true if hidden files should be listed</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="getListHiddenFiles()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getListHiddenFiles</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3533">getListHiddenFiles</a>()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the current state</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setListHiddenFiles(boolean)"><code>setListHiddenFiles(boolean)</code></a></dd></dl>
</li>
</ul>
<a name="isUseEPSVwithIPv4()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUseEPSVwithIPv4</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3543">isUseEPSVwithIPv4</a>()</pre>
<div class="block">Whether should attempt to use EPSV with IPv4.
 Default (if not set) is <code>false</code></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if should attempt EPSV</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setUseEPSVwithIPv4(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseEPSVwithIPv4</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3562">setUseEPSVwithIPv4</a>(boolean&nbsp;selected)</pre>
<div class="block">Set whether to use EPSV with IPv4.
 Might be worth enabling in some circumstances.

 For example, when using IPv4 with NAT it
 may work with some rare configurations.
 E.g. if FTP server has a static PASV address (external network)
 and the client is coming from another internal network.
 In that case the data connection after PASV command would fail,
 while EPSV would make the client succeed by taking just the port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>selected</code> - value to set.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="setCopyStreamListener(org.apache.commons.net.io.CopyStreamListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCopyStreamListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3573">setCopyStreamListener</a>(<a href="../../../../../org/apache/commons/net/io/CopyStreamListener.html" title="interface in org.apache.commons.net.io">CopyStreamListener</a>&nbsp;listener)</pre>
<div class="block">Set the listener to be used when performing store/retrieve operations.
 The default value (if not set) is <code>null</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - to be used, may be <code>null</code> to disable</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="getCopyStreamListener()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCopyStreamListener</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/commons/net/io/CopyStreamListener.html" title="interface in org.apache.commons.net.io">CopyStreamListener</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3583">getCopyStreamListener</a>()</pre>
<div class="block">Obtain the currently active listener.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the listener, may be <code>null</code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="setControlKeepAliveTimeout(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setControlKeepAliveTimeout</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3595">setControlKeepAliveTimeout</a>(long&nbsp;controlIdle)</pre>
<div class="block">Set the time to wait between sending control connection keepalive messages
 when processing file upload or download.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>controlIdle</code> - the wait (in secs) between keepalive messages. Zero (or less) disables.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setControlKeepAliveReplyTimeout(int)"><code>setControlKeepAliveReplyTimeout(int)</code></a></dd></dl>
</li>
</ul>
<a name="getControlKeepAliveTimeout()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getControlKeepAliveTimeout</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3604">getControlKeepAliveTimeout</a>()</pre>
<div class="block">Get the time to wait between sending control connection keepalive messages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of seconds between keepalive messages.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="setControlKeepAliveReplyTimeout(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setControlKeepAliveReplyTimeout</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3615">setControlKeepAliveReplyTimeout</a>(int&nbsp;timeout)</pre>
<div class="block">Set how long to wait for control keep-alive message replies.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - number of milliseconds to wait (defaults to 1000)</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#setControlKeepAliveTimeout(long)"><code>setControlKeepAliveTimeout(long)</code></a></dd></dl>
</li>
</ul>
<a name="getControlKeepAliveReplyTimeout()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getControlKeepAliveReplyTimeout</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3623">getControlKeepAliveReplyTimeout</a>()</pre>
<div class="block">Get how long to wait for control keep-alive message replies.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="setPassiveNatWorkaround(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPassiveNatWorkaround</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3639">setPassiveNatWorkaround</a>(boolean&nbsp;enabled)</pre>
<div class="block">Enable or disable passive mode NAT workaround.
 If enabled, a site-local PASV mode reply address will be replaced with the
 remote host address to which the PASV mode request was sent
 (unless that is also a site local address).
 This gets around the problem that some NAT boxes may change the
 reply.

 The default is true, i.e. site-local replies are replaced.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enabled</code> - true to enable replacing internal IP's in passive
 mode.</dd></dl>
</li>
</ul>
<a name="setAutodetectUTF8(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAutodetectUTF8</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3734">setAutodetectUTF8</a>(boolean&nbsp;autodetect)</pre>
<div class="block">Enables or disables automatic server encoding detection (only UTF-8 supported).
 <p>
 Does not affect existing connections; must be invoked before a connection is established.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>autodetect</code> - If true, automatic server encoding detection will be enabled.</dd></dl>
</li>
</ul>
<a name="getAutodetectUTF8()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAutodetectUTF8</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3743">getAutodetectUTF8</a>()</pre>
<div class="block">Tells if automatic server encoding detection is enabled or disabled.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true, if automatic server encoding detection is enabled.</dd></dl>
</li>
</ul>
<a name="getSystemName()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getSystemName</h4>
<pre><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTPClient.html#line.3754">getSystemName</a>()
                     throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html#getSystemType()"><code>getSystemType()</code></a> instead</i></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/FTPClient.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/FTP.html" title="class in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClientConfig.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTPClient.html" target="_top">Frames</a></li>
<li><a href="FTPClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>
